package com.wang.mapper;

import com.wang.pojo.Blog;

import java.util.List;
import java.util.Map;

public interface BlogMapper {
    //查询所有博客
    List<Blog> getBlogs();
    //添加博客
    int addBlog(Blog blog);
    //动态 sql if
    List<Blog> getBlogIf(Map<String, Object> map);
    //choose
    List<Blog> getBlogsChoose(Map<String, Object> map);
    //set
    int updateBlogSet(Blog blog);

    int deleteBlog(String id);

    List<Blog> getBlogForeach(Map<String, Object> map);
}
